<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ICP备案证书生成器</title>
<style>
   body {
            font-family: 'Arial', sans-serif;
            background-color: #f4f4f9;
            color: #333;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
  .form-container {
    width: 100%;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
  }
  .certificate-container {
    width: 40%;
    margin-right: 80px;
  }
  #certificate {
    display: none;
    border: 1px solid #333;
  }
  .input-area, .button-area {
            display: flex;
            justify-content: space-around;
            width: 100%;
            margin-bottom: 10px;
        }
        .input-area {
            flex-wrap: wrap;
        }
        .button-area {
            justify-content: space-between;
        }
        textarea, input, button {
            margin: 10px;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            margin-bottom: -18px;
        }
        textarea {
            width: 100%;
            height: 80px;
            border-radius: 10px;
        }
        button {
            background-color: #4CAF50;
            color: white;
            border: none;
            cursor: pointer;
            transition: background-color 0.3s;
            flex-basis: 45%;
            margin: 5px;
        }
        button:hover {
            background-color: #45a049;
        }
</style>
</head>
<body>
  <div id="form-forms" class="form-container">
    <h1>ICP备案证书生成器</h1>
    <form id="certForm">
      <label for="domain">网站域名:</label>
      <input type="text" id="domain" name="domain" required><br><br>
      <label for="owner">主办单位名称:</label>
      <input type="text" id="owner" name="owner" required><br><br>
      <label for="owner">主办单位性质:</label>
      <input type="text" id="ownerxz" name="ownerxz" required><br><br>
      <label for="date">审核通过日期:</label>
      <input type="date" id="date" name="date" required><br><br>
      <label for="certNumber">ICP备案号:</label>
      <input type="text" id="certNumber" name="certNumber" required><br><br>
      <label for="websiteName">网站名称:</label>
      <input type="text" id="websiteName" name="websiteName" required><br><br>
      <label for="serviceContent">网站内容:</label>
      <textarea id="serviceContent" name="serviceContent" rows="4" required></textarea><br><br>
      <button type="button" onclick="thebookicpsc()">生成证书</button>
    </form>
  </div>
  <div id="canvascsr"  class="certificate-container">
    <canvas id="certificate" width="650" height="400"></canvas>
    <button id="buttontoshow" style="display: none;">重新修改</button>
  </div>
</div>

<script src="certificate.js"></script>
<script>

</script>
</body>
</html>